<template>
  <div>
    <div class="head">
      <a class="back" @click="doGoback">
        <img src="../../../assets/1first/5-8搜索结果/back.png" alt="">
      </a>
      <div>本周新品</div>
      <a class="share">
        <img src="../../../assets/1first/修炼秘籍/share.png" alt="">
      </a>
    </div>
    <div class="title">
      <h3>本周新品</h3>
      <p>精选环球好货</p>
    </div>
    <div class="sousuoDiv">
      <div>
        <input type="text" placeholder="输入商品关键词">
      </div>
    </div>
    <ul class="cont">
      <li v-for="item in 2">
        <div class="imgDiv">
          <img src="../../../assets/1first/4母婴/haibao_mamibaobei.png" alt="">
          <div class="maskDiv">
            <div class="mask"></div>
            <p>奶粉也要玩有机,养成健康北鼻</p>
          </div>
        </div>
        <div class="flexDiv">
          <div class="naifen" v-for="item in 3">
            <div class="imgDiv1">
              <img src="../../../assets/1first/4母婴/naifen.png" alt="">
            </div>
            <div class="contText">
              <p class="describe">诺优能幼儿配方奶粉</p>
              <p class="price">¥59</p>
            </div>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
  export default {
    methods: {
      doGoback() {
        this.$router.go(-1)
      }
    }
  }
</script>
<style scoped>
  .head{
    position: relative;
    text-align: center;
    background: #e53e42;
    color: #fff;
    line-height: 2.13rem;
    font-size: 0.8rem;
  }
  .back{
    position: absolute;
    left: 0;
    margin-left: 0.44rem;
  }
  .back>img{
    width: 0.51rem;
  }
  .share{
    position: absolute;
    right: 0;
    margin-right: 0.44rem;
    top: 0;
  }
  .share>img{
    width: 0.8rem;
  }
  .title{
    background: #fff;
    padding: 0.44rem;
  }
  .title h3{
    font-size: 0.8rem;
    color: #e53e42;
  }
  .title p{
    font-size: 0.67rem;
  }
  .sousuoDiv{
    padding: 0.44rem;
  }
  .sousuoDiv>div{
    background: #fff;
    border-radius: 0.22rem;
    line-height: 1.07rem;
    text-align: center;
    background-image: url("../../../assets/1first/5-8搜索结果/sousuo.png");
    background-repeat: no-repeat;
    background-position: 4rem center;
    background-size: 0.62rem 0.67rem;
  }
  .sousuoDiv input{
    font-size: 0.53rem;
  }
  .sousuoDiv input::-webkit-input-placeholder {
    color: #e83d41;
  }
  .cont>li{
    margin-bottom: 0.44rem;
    background: #fff;
  }
  .imgDiv{
    position: relative;
  }
  .imgDiv>img{
    width: 100%;
  }
  .maskDiv{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.67rem;
    font-size: 0.67rem;
    color: #fff;
    text-align: center;
    height: 1.78rem;
  }
  .mask{
    opacity: 0.45;
    background: #000;
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
  }
  .maskDiv>p{
    color: #fff;
    position: relative;
    z-index: 1;
    line-height: 1.78rem;
  }
  .flexDiv{
    display: flex;
    padding: 0.44rem;
  }
  .naifen{
    flex: 1;
  }
  .imgDiv1{
    border: solid 1px #cccccc;
    text-align: center;
    margin: 0 0.11rem;
    padding: 0.51rem 0;
  }
  .imgDiv1>img {
    width: 3.18rem;
  }
  .contText{
    padding: 0.22rem 0.89rem;
    font-size: 0.53rem;
  }
  .price{
    color: #e83d41;
    text-align: center;
  }
</style>
